"use strict";
function Aa(array) {
    var res = [];
    for (let i = 1; i < array.length; i++) {
        if (array.indexOf(array[i]) === array.lastIndexOf(array[i])) {
            res.push(array[i]);
        }
    }
    console.log(res);
}
var len = [1, 1, 2, 2, 3, 4, 4];
Aa(len);
